第 8步:现在让我们在main()中调用play_game函数。

  • ,将Call with Parameters拖到main()的内部和底部。
  • my_function()更改为play_game() 。这个函数将开始我们的游戏。
  • 最后,将my_var1更改为my_display并将my_var2更改为my_dictionary

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)